package com.ipfsemc.ipfsemc.service;

import com.ipfsemc.ipfsemc.model.Apply;
import com.ipfsemc.ipfsemc.model.ApplyBase;
import com.ipfsemc.ipfsemc.model.ApplySpace;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface IApplyService {

    public int add(Apply apply);

    public Apply selectApply(Integer applyId);

    @Transactional(readOnly = true)
    public List<Apply> list(Apply apply);

    @Transactional(readOnly = true)
    public List<Apply> selectByUser(Apply apply);

    @Transactional(readOnly = true)
    List<ApplyBase> selectFilCon(String applicantId);

    public List<ApplyBase> FirSpace(String applicantId);

    @Transactional(readOnly = true)
    List<ApplySpace> FileCoinDetails(String applicantId);

    public int del(Integer applyId);

    public int updateState(Apply apply);

    Apply isApply(Apply apply);


}
